#!/bin/bash

Date=$(date +%Y-%m-%d)

echo 
echo -e "\t\tDaily System Report"
echo

echo -e "Today is" ${Date}
echo

echo -e "System has been \c"

uptime | sed -n '/,/s/,/ /gp' | awk '{if( $4 == "days" || $4 == "day" ) {print $2,$3,$4,$5} else {print $2,$3}}'

echo
echo -e "Memory Usage: \c"
#
free | sed -n '2p' | gawk 'x = int(($3 / $2) * 100) {print x}' | sed 's/$/%/'